<?php
$this->breadcrumbs = array(
    '推荐主题管理' => array('/advice/adviceTopic/manage'),
    $model->isNewRecord?'推荐主题创建':'推荐主题更新',
);
$action = $model->isNewRecord ? 'create' : 'update?id='.$model->id;
?>
<div class="row" style="min-height:300px;background-color:#fff;">
    <?php

    $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
        'id' => 'CreateForm',
        'action' => $action,
        'type' => 'horizontal',
        'enableAjaxValidation' => false,
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    if ($form instanceof TbActiveForm) {

    }
    ?>
    <blockquote><b>新增</b></blockquote>
    <div class="col-md-12">
        <?php
        echo $form->textFieldRow($model, 'name');


        $this->widget('bootstrap.widgets.TbButton', array(
            'buttonType' => 'submit',
            'type' => 'primary',
            'label' => '保存',
            'htmlOptions' => array('class' => 'submit', 'style' => 'width:120px;margin:15px 400px;'),
        ));
        ?>
    </div>
    <?php
    $this->endWidget();
    ?>
</div>
